﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Utilities
{
    public  class OrderNum
    {
        public string Ordernum()
        {
            Random rd = new Random();
            string str = "abcdefghjkmnpqrstuvwxyz0123456789";
            int len = 4;
            StringBuilder sb = new StringBuilder();
            string time = DateTime.Now.ToString("yyyyMMddhhmmss");
            sb.Append(time);
            for (int i = 0; i < len; i++)
            {
                int index = rd.Next(str.Length);
                sb.Append(str[index]);
            }
            return sb.ToString();
        }
    }
}
